package cn.tedu.weibo1.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

@Data
public class CommentDTO {
    @NotBlank(message = "content不允许为空")
    @ApiModelProperty(value = "评论内容",required = true)
    private String content;
    @Range(min = 1,max = 300 ,message = "weiboId在1~300之间")
    @ApiModelProperty(value = "微博ID",required = true)
    private Long weiboId;
}
